package collection2;

import java.util.*;
import java.util.stream.Collectors;

public class linklist1 {
    public static void main(String[] args) {

        LinkedList<String> list = new LinkedList<>();
        list.add("a");
        list.add("b");
        list.addFirst("zero");
        list.add("b");
        list.remove("b");
        ArrayList<String> c1 = list.stream().collect(Collectors.toCollection(ArrayList::new));
        System.out.println(c1);


        List<String> strings = Collections.synchronizedList(list);

        Comparator<Integer> comparator = (a, b) -> a - b;

        TreeSet<Integer> integers = new TreeSet<>(comparator);



    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
